/**
 * 
 */
package name.yzhu.wbdata.db.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author yhzhu
 *
 */
public class Category implements Serializable {
    
	/**
	 * 
	 */
	private static final long serialVersionUID = 6194298702521519066L;

	private Long id;
	
	private String name;
	
	private String description;
	
	private Long parentId = 0L;
	
	private Set<Production> production = new HashSet<Production>();
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Set<Production> getProduction() {
		return production;
	}

	public void setProduction(Set<Production> production) {
		this.production = production;
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", description="
				+ description + ", parentId=" + parentId + ", production="
				+ production + "]";
	}
	
	
}
